﻿@page
@model IndexModel
@{
    ViewData["Title"] = "老司机";
}

<script src="https://telegram.org/js/telegram-web-app.js"></script>
<div class="text-center">
    <h1 class="display-4">Welcome 老司机</h1>
    <button onclick="AAA();">requestContact</button>
</div>
<script>
    function AAA() {
        Telegram.WebApp.requestContact(inf => {
            console.log(inf);
        });
    }

    (function init() {
        var queryString = Telegram.WebApp.initDataUnsafe.start_param;
        console.log(queryString);
        alert(queryString);
    })();

</script>
